import { Provide, Inject } from '@midwayjs/decorator';
import { BaseRpcService, CoolRpcService } from '@cool-midway/rpc';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { PluginWebsiteEntity } from '../entity/pluginWebsite';
import { ILogger } from '@midwayjs/logger';
import { Utils } from '../comm/utils';
/**
 * 描述
 */
@Provide()
@CoolRpcService({
  entity: PluginWebsiteEntity,
  method: ['add', 'delete', 'update', 'info', 'list', 'page'],
})
export class PluginWebsiteService extends BaseRpcService {
  @InjectEntityModel(PluginWebsiteEntity)
  PluginWebsiteEntity: Repository<PluginWebsiteEntity>;
  @Inject()
  logger: ILogger;
  @Inject()
  utils: Utils;
}
